package com.coin900.coin.service.fu;

import com.coin900.coin.persist.fu.FuUserWithdrawalAddressVO;
import com.value.mybatis.IDaoRouter;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 资产明细
 *
 * @author shui
 * @create 2018-1-26
 */
@Service
public class FuUserWithdrawalAddressService implements IFuUserWithdrawalAddressService {

    @Override
    public List<FuUserWithdrawalAddressVO> loadFuUserWithdrawalAddress(Map<String, Object> params){
        return this.daoRouter.query("FuUserWithdrawalAddress.loadFuUserWithdrawalAddress",params);
    }

    @Override
    public void insertFuUserWithdrawalAddress(FuUserWithdrawalAddressVO fuUserWithdrawalAddressVO){
        this.daoRouter.insert("FuUserWithdrawalAddress.insertFuUserWithdrawalAddress", fuUserWithdrawalAddressVO);
    }

    @Override
    public void deleteFuUserWithdrawalAddress(FuUserWithdrawalAddressVO fuUserWithdrawalAddressVO){
        this.daoRouter.update("FuUserWithdrawalAddress.deleteFuUserWithdrawalAddress", fuUserWithdrawalAddressVO);
    }

    @Autowired
    private IDaoRouter daoRouter;

}